package cn.gok.service.Impl;

import cn.gok.mapper.AdminMapper;
import cn.gok.pojo.Examination;
import cn.gok.pojo.ExcelsPro;
import cn.gok.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminServiceImpl implements AdminService {
    @Autowired(required = false)
    private AdminMapper adminMapper;


    @Override
    public int addExam(ExcelsPro excelsPro) {
        return adminMapper.addExam(excelsPro);
    }

    @Override
    public List<Examination> selAll() {
        return adminMapper.selAll();
    }

    @Override
    public List<ExcelsPro> selExam(String title) {
        return adminMapper.selExam(title);
    }

    @Override
    public int update(Examination examination) {
        return adminMapper.update(examination);
    }

    @Override
    public int upexam(ExcelsPro excelsPro) {
        return adminMapper.upexam(excelsPro);
    }

    @Override
    public int deldate(int id) {
        return adminMapper.deldate(id);
    }

    @Override
    public int delexam(int id) {
        return adminMapper.delexam(id);
    }

}
